<?php
/**
 * Created by PhpStorm.
 * User: user1
 * Date: 2018/6/1
 * Time: 15:06
 */

namespace app\common\validate;


class RoleValidate extends BaseValidate
{
    protected $rule = [
//        'parentId'  =>  'require',
        'name' => 'require',
        'status' => 'require|in:10,20,99',
//        'authIds' => 'require',
    ];

    protected $message = [
        'name.require' => '请输入角色名称',
        'status.require' => '请选择角色状态',
        'status.in' => '角色状态错误',
    ];
}